
const { ccclass, property } = cc._decorator;

import ErShi from "./ErShi";
import XiangLian from "./XiangLian";
@ccclass
export default class StepNine extends cc.Component {
    //第九步
    @property(ErShi)
    ErShi: ErShi = null;
    @property(XiangLian)
    XiangLian: XiangLian = null;

    _point = 1;

    //更新步骤
    updatePoint(point: number) {
        this._point = point;
        this.ErShi.node.active = point == 1;
        this.XiangLian.node.active = point == 2;
        switch (point) {
            case 1:
                this.ErShi.initData();
                break;
            case 2:
                this.XiangLian.initData();
                break;
        }
    };


}
